import {request} from './Request';

// 获取所有卡牌种类
export function getAllCardmates() {
    return request({
        url: '/cardmate/list',
        method: 'get'
    });
}

// 添加卡牌种类
export function addCardmate(data) {
    return request({
        url: '/cardmate/add',
        method: 'post',
        data: data
    });
}

// 修改卡牌种类
export function updateCardmate(data) {
    return request({
        url: '/cardmate/update',
        method: 'post',
        data: data
    });
}

// 删除卡牌种类
export function deleteCardmate(id) {
    return request({
        url: '/cardmate/delete',
        method: 'post',
        data: {
            id: id
        }
    });
}